<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">
    <div class="row ">
        <div class="col-sm-2 col-sm-offset-10">
            <button class="btn btn-block btn-info" ng-click="add()">添加企业广告</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->
<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
            <tr>
                <th class="col-md-2 text-center">广告类型</th>
                <th class="col-md-2 text-center">可见次数</th>
                <th class="col-md-2 text-center">积分数</th>
                <th class="col-md-2 text-center">创建时间</th>
                <th class="col-md-2 text-center">更新时间</th>       
                <th class="col-md-2 text-center">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="obj in objs">
                <td class="text-center">
                    <p class="" ng-show="obj.type == '0'">公众号二维码</p>
                    <p class="" ng-show="obj.type == '1'">公众号图文</p>
                    <p class="" ng-show="obj.type == '2'">自定义图文</p>                                    
                </td>
                <td class="text-center">{{obj.num}}</td>
                <td class="text-center">{{obj.integral}}</td>
                <td class="text-center">{{obj.create_time}}</td>
                <td class="text-center">{{obj.update_time}}</td>                              
                <td class="text-center">
                <a ng-click="edit(obj.corporate_adver_id)" class="btn btn-info btn-xs">编辑</a>
                <a ng-click="delete(obj.corporate_adver_id)" class="btn btn-danger btn-xs">删除</a>
                <a ng-click="getaddress(obj.corporate_adver_id)" class="btn btn-primary btn-xs">获取地址</a>
                </td>
            </tr>
            </tbody>
            </table>

        <div class="text-right">
             <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" ng-change="getlist()" previous-text="上一页" next-text="下一页"
                first-text="首页" last-text="尾页" max-size="maxSize" boundary-links="true" rotate="false" items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>
<!--<div class="col-sm-12">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group form-inline">
            <div class="col-sm-12">
                
                  <div class="form-group pull-right">
                      <button type="button" class="btn btn-primary" ng-click="add()">添加企业广告</button>
                      &nbsp;&nbsp;&nbsp;&nbsp;
                  </div>


            </div>
        </div>
    </div>
</div>

<div class="col-md-12 panel panel-default table-responsive">
    
</div>
<div class="text-right" style="background-color: white">
  <pagination 
      total-items="totalItems" 
      ng-model="currentPage" 
      ng-change="getlist()"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="尾页"
      max-size="5"
      boundary-links="true"
      rotate="false"

      items-per-page="itemsPerPage"
      class="m-t-none m-b"></pagination>
  </div>
</div> -->
